package cc.sunwl.study.springboot.demo.gson.entity;

import com.google.gson.annotations.Expose;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;
import tk.mybatis.mapper.annotation.ColumnType;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.IdentityDialect;

import javax.persistence.Id;

@Data
public class Article {
    @Id
    @ColumnType(jdbcType = JdbcType.BIGINT)
    @KeySql(dialect = IdentityDialect.MYSQL)
    @Expose
    private Long id;
    @Expose
    private String title;
    @Expose
    private String content;
}
